# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         man
# Description:
# Author:       yzl
# Date:         2019-03-13
#-------------------------------------------------------------------------------

class Man(object):
    def __init__(self):
        self.name = 'yzl'
        self.age = 40
        self.__aa = 'aabc'

    def helo(self): # 第一参数必须是self
        self.salary = 8000

        print('hello ....')

    def __myage(self): # 加 __方法名
        return self.age

    def getAA(self):
        return self.__aa

# Student 类属性: 姓名,年龄,专业,系,院,学校名称
# 来自 getinfo 方法 构造一个漂亮点的模板字符串

class Stu(object):
    def __init__(self,name,age):
        self.name = "杨芝宾"
        self.age = 22
        self.major = "信息管理与信息系统"
        self.department = "商学院"
        self.school = "湖南工业大学"

    def getinfo(self):
        return "{}，{}岁，来自{}{}{}".format(self.name,
                                        self.age,
                                        self.school,
                                        self.department,
                                        self.major)


class Dog:
    pass

if __name__ == '__main__':
    m = Man()
    # m.helo() # 通过点调用属性或方法
    # print(m.name,m.age)
    # print(type(m.age))
    # print(m.salary)
    # m.bankcode = '100012345678'
    # print(m.bankcode)
    #
    # dog = Dog()
    # dog.name='wangwang'
    # print(dog.name)
    # print(m._Man__myage())
    # print(m.__aa)

    print(m.getAA())


